package com.situ.stl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/** 
 * 实体类 - 预约
 */
@Data
@ToString
@NoArgsConstructor
public class Reserve{

    /** 
     * ID
     */
    private Integer id;

    /** 
     * 状态
     */
    private Integer status;

    /** 
     * 评分
     */
    private Double score;

    /** 
     * 评语
     */
    private String comment;

    /** 
     * 评论时间
     */
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") 
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss") 
    private Date commentTime;

    /** 
     * 预约时间
     */
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") 
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss") 
    private Date reserveTime;

    /** 
     * 预约
     */
    private Integer courseId;

    /** 
     * 预约
     */
    private Integer memberId;

    /** 
     * 预约
     */
    private Course course;

    /** 
     * 预约
     */
    private Member member;


}